package io.sdl.common.sys.dto;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.SchemaProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 会话聊天消息表
 * 
 * @author Dchen
 * @email 1211734836@qq.com
 * @date 2025-05-13 14:31:02
 */
@Data
public class SdlSessionMessageDTO implements Serializable {


	@SchemaProperty(name = "")
	private Long messageId;

	@SchemaProperty(name = "会话id")
	private Long sessionId;

	@SchemaProperty(name = "发送者token")
	private String token;

	@SchemaProperty(name = "发送者id")
	private Long senderId;

	@SchemaProperty(name = "接收者id")
	private Long toId;

	@SchemaProperty(name = "发送内容")
	private String content;

	@SchemaProperty(name = "消息类型")
	private String messageType;

	@SchemaProperty(name = "发送时间")
	private Date sendTime;

	@SchemaProperty(name = "发送状态")
	private Integer status;

	@SchemaProperty(name = "扩展字段")
	private String extras;

	@SchemaProperty(name = "是否为当前用户发送")
	private Boolean isMe;

	@SchemaProperty(name = "接收者")
	private Long receiverId;

	@SchemaProperty(name = "会话标识")
	private String conversationId;

	@SchemaProperty(name = "未读消息数")
	private Integer unreadMsg;

	@SchemaProperty(name = "患者卡片")
	private SdlPatientDTO patientInfo;

}
